package controllers;

import java.sql.Date;
import models.*;

public class TestController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Player p1 = new Player(1, "martin850102", "kakben", true, Date.valueOf("2010-04-19"), Date.valueOf("2010-03-02"));
		Player p2 = new Player(2, "kaiwano", "kaiwanomule2", false, null, Date.valueOf("2010-03-03"));
		
		//runelist check
		p1.getRunelist().setAmn(2);
		System.out.println("Amns: " + p1.getRunelist().getAmn());
		p1.getRunelist().empty();
		System.out.println("Amns: " + p1.getRunelist().getAmn());
		
		//itemcheck
		Item i1 = new Item(2,p1,Rareness.UNIQUE,ItemType.SHAKO,"Halequin Crest");
		i1.addStat(new Stat(StatType.MAGICFIND,9));
		p1.addItem(i1);
		Item i2 = new Item(3,p1,Rareness.MAGIC,ItemType.SMALLCHARM,null);
		i2.addStat(new Stat(StatType.RESISTALL,5));
		i2.addStat(new Stat(StatType.STRENGTH,8));
		p1.addItem(i2);
		System.out.println(p1.itemsToString());
		System.out.println(p2.itemsToString());
		
		//playercheck
		System.out.println(p1.toString());
		System.out.println(p2.toString());
		
	}

}
